package com.xiongda.dao;

import com.xiongda.pojo.Comment;
import com.xiongda.pojo.CommentWithBLOBs;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface CommentMapper {
    int deleteByPrimaryKey(Long id);

    int insert(CommentWithBLOBs record);

    int insertSelective(CommentWithBLOBs record);

    CommentWithBLOBs selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(CommentWithBLOBs record);

    int updateByPrimaryKeyWithBLOBs(CommentWithBLOBs record);

    int updateByPrimaryKey(Comment record);

    List<CommentWithBLOBs> getCommentByBlog(Map<String, Object> map);

    Integer getTotal(Map<String, Object> map);

    List<CommentWithBLOBs> getSubComment(Map<String, Object> map);

    List<CommentWithBLOBs> getHotComment(Map<String, Object> map);

    CommentWithBLOBs getCommentById(Long id);

    int deleteFloorComment(Long id);
}